package FlixelSampleApp {
	/**
	 * @author Amiel Zuniga
	 */
	import org.flixel.FlxSprite;
	/**
	 * @author ieiomeli
	 */
	public class Jugador extends FlxSprite{
		
		[Embed(source = "alienSheet.png")] public static var jugadorSpriteSheet:Class;
		
		public function Jugador(x:int, y:int){
			super(x,y);
			loadGraphic(jugadorSpriteSheet, true, true, 50, 50, true);
			
			frame=10;
			velocity.y=80;
			
			addAnimation("derecha", [4,5,6],10,false);
			addAnimation("izquierda", [1,2,3],10,false);
			addAnimation("arriba", [0],10,false);
			addAnimation("abajo", [0],10,false);
		}
		
		public function setVelocity():void{
			velocity.y=100;
		}
	}
}
